package com.atom.module.lib.opengles.ext

/**
 * All rights Reserved, Designed By www.rongdasoft.com
 * @version V1.0
 * @Title: Result
 * @Description:
 * @author: wuyongzheng
 * @date: 2022/1/18
 * @Copyright: 2022/1/18 www.rongdasoft.com Inc. All rights reserved.
 */
sealed class ResultWrapper {

    open class Success<Value>(var value: Value) : ResultWrapper()

    object SuccessUnit : Success<Unit>(Unit)

    open class Failure(val throwable: Throwable) : ResultWrapper()

    object FailureUnit : Failure(EMPTY)

    private object EMPTY : Throwable()

}
